import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import qs from 'qs'
// import 'vue.config.js'

// 导入login星空背景
import VueParticles from 'vue-particles'

//  导入全局样式表
import './assets/css/global.css'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import 'element-ui/lib/theme-chalk/display.css';

// 导入axios
import axios from 'axios'

// 导入接口相关
import { domain } from './router/url'
import commonUrl from './router/commonUrl'

// 导入echart
import echarts from "echarts";

// 导入 自适应
// import './utils/rem'

// 导入lib-flexible
// import 'lib-flexible/flexible.js'

Vue.use(commonUrl)

//配置axios
//->1,模块一接口,url地址
axios.defaults.baseM1URL = domain.Base_M1_URL
    // axios.defaults.baseM12URL = domain.Base_M12_URL
    // axios.defaults.baseM13URL = domain.Base_M13_URL
    // //->1,模块一接口,url地址
    // //->2,模块二接口,url地址
    // axios.defaults.baseM2URL = domain.Base_M2_URL
    // axios.defaults.baseM22URL = domain.Base_M22_URL
    // //->3,模块三接口,url地址
    // axios.defaults.baseM3URL = domain.Base_M3_URL
    // axios.defaults.baseM31URL = domain.Base_M31_URL
    // //->4,模块四接口,url地址
    // axios.defaults.baseM4URL = domain.Base_M4_URL
    // axios.defaults.baseM41URL = domain.Base_M41_URL

Vue.config.productionTip = false
Vue.use(VueParticles)
Vue.use(ElementUI);
axios.defaults.baseURL = 'http://8.129.53.188:9000/'
Vue.prototype.$http = axios
Vue.prototype.$qs = qs

// 将全局的echart对象挂载到Vue的原型对象中
// 引用时写 this.$echarts
Vue.prototype.$echarts = window.echarts;

new Vue({
    router,
    render: h => h(App)
}).$mount('#app')